package com.jasic.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: Jasic
 * Date: 12-11-26
 */
public class DateUtil {

    public static final void sleep(long time){

        try {
            Thread.sleep(time);
        } catch (InterruptedException e) {
            e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
        }
    }

    /**
     * 简单的时间格式化
     * @param date
     * @param style
     * @return
     */
    public static final String simplicitFormat(Date date, String style){

        return new SimpleDateFormat(style).format(date);
    }
}
